package com.zpp.wedding_admin.service.impl;

import com.zpp.wedding_admin.entity.Banner;
import com.zpp.wedding_admin.entity.User;
import com.zpp.wedding_admin.entity.vo.IDs;
import com.zpp.wedding_admin.mapper.UserMapper;
import com.zpp.wedding_admin.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zpp.wedding_admin.utils.GetObjectClass;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 朱盼盼
 * @since 2022-12-29
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public boolean setUserForbid(String id) {
        return userMapper.setUserForbid(id) > 0;
    }

    @Override
    public boolean setUserRelease(String id) {
        return userMapper.setUserRelease(id) > 0;
    }

    @Override
    public boolean deleteAllSelect(Integer iDs[]) {
        return userMapper.deleteAllSelect(iDs);
    }

    @Override
    public boolean goodAdd(String userId) {
        return userMapper.goodAdd(userId);
    }

    @Override
    public boolean goodSubtract(String userId) {
        return userMapper.goodSubtract(userId);
    }

    @Override
    public boolean collectSubtract(String userId) {
        return userMapper.collectSubtract(userId);
    }

    @Override
    public boolean collectAdd(String userId) {
        return userMapper.collectAdd(userId);
    }

    @Override
    public boolean followSubtract(String oneId) {
        return userMapper.followSubtract(oneId);
    }

    @Override
    public boolean fanSubtract(String twoId) {
        return userMapper.fanSubtract(twoId);
    }

    @Override
    public boolean followAdd(String oneId) {
        return userMapper.followAdd(oneId);
    }

    @Override
    public boolean fanAdd(String twoId) {
        return userMapper.fanAdd(twoId);
    }

    @Override
    public boolean JoinNumAdd(Integer id) {
        return userMapper.JoinNumAdd(id);
    }
}
